import java.lang.String;

public class LeftShiftTest {

  public static void main(String[] args) {
    String s = args[0];
    int n = Integer.parseInt(args[1]);

    String sub1 = s.substring(0, n);
    String sub2 = s.substring(n, s.length());

    System.out.println("Result: " + sub2 + sub1);
  }

}
